couchbaselitecreatedocument

Well,thefirstactionwewanttodoiscreateourfirstdocumentwithCouchbase.Couchbasehasonemethodtocreateadocument,saveDocument(_document: ...,Createastructureddocumentobjectcontainingyourdata.UsetheInsertAsync()methodtoinsertthedocumentinagivenkeyspace.AMutationResultobjectis ...,Firstopenyourdatabase.Ifthedatabasedoesnotalreadyexist,CouchbaseLitewillcreateitforyou.CouchbasedocumentsareassignedtoaColl...

Couchbase Lite in 7 minutes

Well, the first action we want to do is create our first document with Couchbase. Couchbase has one method to create a document, saveDocument(_ document: ...

Create Documents

Create a structured document object containing your data. Use the InsertAsync() method to insert the document in a given keyspace. A MutationResult object is ...

Documents

First open your database. If the database does not already exist, Couchbase Lite will create it for you. Couchbase documents are assigned to a Collection. All ...

Documents

The Document class offers a set of property accessors for various scalar types, including boolean, integers, floating-point and strings. These accessors take ...

Usage - Couchbase Lite

The MutableDocument() initializer can be used to create a new document where the document ID is randomly generated by the database. The MutableDocument(withID: ...

Usage Examples

Create a document​. The default constructor of MutableDocument creates a document with a randomly generated id and optionally initializes it with some ...